package request

import (
	"github.com/satori/go.uuid"
	"time"
)

type PageInfo struct {
	PageNum  int    `json:"page_num" form:"page_num"`
	PageSize int    `json:"page_size" form:"page_size"`
	Name     string `json:"name" form:"name"`
}

type Info struct {
	Name     string `json:"name" form:"name"`
	Password string `json:"password" form:"password"`
}

type RedEnvelopeInfo struct {
	Id       uuid.UUID     `json:"id" form:"id"`
	AllMoney int64         `json:"all_money" form:"all_money"`
	Num      int64         `json:"num" form:"num"`
	Hour     int           `json:"hour" form:"hour"`
	Time     time.Duration `json:"-"`
}

type RedEnvelopeGrabber struct {
	UserId string `json:"user_id" form:"user_id"`
	Key    string `json:"key" form:"key"`
}

type WechatPayId struct {
	TransactionId string `json:"transaction_id" form:"transaction_id"`
	Mchid         string `json:"mchid" form:"mchid"`
}
